package com.zhongyu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhongyu.pojo.Permission;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface PermissionMapper extends BaseMapper<Permission> {
@Select("select perm_code from smbms_permission where id in(select perm_id from smbms_role_permission where role_id=#{roleId})")
List<String>  findPermCodes(@Param("roleId") Integer roleId);
}
